package main

import "fmt"

type Animal interface {
	Say() string
	Run()
}

type Dog struct {
	name   string
	height float64
}

func (dog Dog) Say() string {
	fmt.Printf("hello everyone! my name is %s \n", dog.name)
	return ""
}

func (dog Dog) Run() {
	fmt.Printf("I will run, hahaha")
}
func main() {
	var dog Dog = Dog{name: "jinmao", height: 1.66}
	var animal Animal = Animal(dog)
	animal.Say()
	animal.Run()
}
